package com.dx.wlmq.service.impl;

import com.dx.wlmq.domain.SmbmsRole;
import com.dx.wlmq.mapper.SmbmsRoleMapper;
import com.dx.wlmq.service.SmbmsRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

/**
 * @ClassName SmbmsRoleServiceImpl
 * @Description TODO:
 * @Author 12994
 * @Date 2024/10/20 19:05
 * @Version 1.0
 **/
@Service("smbmsRoleService")
public class SmbmsRoleServiceImpl implements SmbmsRoleService {

    @Autowired
    @Qualifier("smbmsRoleMapper")
    private SmbmsRoleMapper smbmsRoleMapper;

    @Override
    public ArrayList<SmbmsRole> listAllRole() {
        return smbmsRoleMapper.listAllRole();
    }

    @Override
    public SmbmsRole findRoleById(Long id) {
        return smbmsRoleMapper.findRoleById(id);
    }

    @Override
    public int addRole(SmbmsRole role) {
        return smbmsRoleMapper.addRole(role);
    }

    @Override
    public int deleteRoleById(Long id) {
        return smbmsRoleMapper.deleteRoleById(id);
    }

    @Override
    public int updateRole(SmbmsRole role) {
        return smbmsRoleMapper.updateRole(role);
    }
}
